package com.atguigu.exer5;

public class TestMyDate {
    public static void main(String[] args) {
        //（2）在测试类TestMyDate类中，创建两个日期对象，一个日期赋值为今年六一儿童节日期，
        // 一个日期赋值为今年程序员节日期，并显示
        MyDate childrenDay = new MyDate();
        childrenDay.year = 2025;
        childrenDay.month = 6;
        childrenDay.day = 1;
        System.out.println("今年六一儿童节:" + childrenDay.year +"年" + childrenDay.month+"月" + childrenDay.day+"日");

        MyDate programDay = new MyDate();
        programDay.year =2025;
        programDay.month =10;
        programDay.day =24;
        System.out.println("今年程序员节:" + programDay.year +"年" + programDay.month+"月" + programDay.day+"日");
    }
}
